package staticdemo;

public enum EnumTest {
    ONE,
    TWO,
    THREE;
    static {
        System.out.println("枚举类加载");
    }
    {
        System.out.println("枚举实例初始化");
    }
    public void doSomething() {
        System.out.println("枚举单例执行某些操作");
    }
}
